<template>
  <div>
    <div id="history-info">
        <div class="title-info">
          <span class="title-text">历史分析记录</span>
        </div>
        <div class="detail-content">
          <WarnTimeLine :TimeLine="TimeLine" v-if="TimeLine.length>0"></WarnTimeLine>
          <div v-else style="height: 50px;line-height: 50px;text-align: center;font-size: 12px;">暂无数据</div>
        </div>
    </div>
  </div>
</template>
<script>
  import WarnTimeLine from './timeline'
  export default {
    name: 'historyRecord',
    data () {
      return {
      }
    },
    components: {
      'WarnTimeLine': WarnTimeLine
    },
    props: {
      TimeLine: {
        type: Array,
        required: true
      }
    },
    methods: {
    },
    mounted () {
      // console.log(this.TimeLine)
      // for (let val of timeline.values()) {
      //   for (let value of timeline.values()) {
      //     if ((value.analysis_id === val.analysis_id) && (value.operate_type === '人工分析') && (value.analysis_state === '1') && (val.operate_type === '人工分析') && (val.analysis_state === '0') && (val.r_time < value.r_time)) {
      //       val.btn = 'disabled'
      //     }
      //   }
      // }
      // for (let val of timeline.values()) {
      //   for (let value of timeline.values()) {
      //     if ((value.analysis_id === val.analysis_id) && (value.operate_type === '人工分析') && (value.analysis_state === '0') && (val.operate_type === '人工分析') && (val.analysis_state === '1') && (val.r_time < value.r_time)) {
      //       val.btn = 'disabled'
      //     }
      //   }
      // }
      // this.timeline = timeline
    }
  }
</script>
<style lang = 'less'>
@import './style/record.less';
</style>